package com.yr.ryjk.district.dao;

import java.util.List;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.yr.ryjk.district.entity.District;

public interface DistrictMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(District record);

    int insertSelective(District record);

    District selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(District record);

    int updateByPrimaryKey(District record);

    @Select("select * from district where d_level=1")
    @ResultMap("BaseResultMap")
	List<District> selectAllPro();

    @Select("select * from district where d_parent_id=#{0}")
    @ResultMap("BaseResultMap")
	List<District> selectByParentId(String proId);
}